<h2>Sign up for Employee</h2>

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
  <%= devise_error_messages! %>

  <%= render :partial =>'form',:locals => {:f =>f} %>

  <div><%= f.label :password %><br />
  <%= f.password_field :password %></div>

  <div><%= f.label :password_confirmation %><br />
  <%= f.password_field :password_confirmation %></div>

  <div><%= f.submit "Register" %></div>
<% end %>

<%= render "links" %>
<script>
var f4 = new LiveValidation('employee_password');
f4.add( Validate.Presence );
f4.add( Validate.Length, { minimum: 6} );
var f19 = new LiveValidation('employee_password_confirmation');
f19.add( Validate.Confirmation, { match: 'employee_password' } );
</script>
